#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Foods N' Roses webapp URL mappings.
#
# Created on 2008-08-15.
# $Id$
#

from django.conf.urls.defaults import patterns

urlpatterns = patterns( "buggarden.apps.fnr.views",

    ( r"^$"                                         , "home_page"           ),
    ( r"^static/(?P<name>\w+)/$"                    , "static_page"         ),
    ( r"^error/$"                                   , "error_page"          ),
    ( r"^lang/$"                                    , "change_language"     ),
    
    ( r"^resto/$"                                   , "view_resto_catalog"  ),
    ( r"^resto/(?P<uid>\w+)/$"                      , "view_resto"          ),
    ( r"^resto/(?P<uid>\w+)/logo/$"                 , "get_resto_logo"      ),
    ( r"^resto/(?P<uid>\w+)/post_opinion/$"         , "post_opinion"        ),
    
    ( r"^search/(?P<criterion>\w+)/(?P<value>.+)/$" , "search_restos"       ),
    
    ( r"^search_results/$"                          , "view_search_results" ),
    
    ( r"^add_resto/$"                               , "add_resto"           ),
    
    ( r"^.*$"                                       , "not_found_page"      ),
)



